package com.guobox.movies.view.timer;

import com.guobox.movies.utils.ResetTimer;

public class CateSlideTimer extends ResetTimer {

    private TimerCallback cateTimerCallback;

//    public static CateSlideTimer instance = null;
//
//    public static CateSlideTimer getInstance(TimerCallback timerCallback) {
//        if (instance == null) {
//            instance = new CateSlideTimer(100, timerCallback);
//        }
//        return instance;
//    }

    public CateSlideTimer(long delayTime, TimerCallback cateTimerCallback) {
        super(delayTime);
        this.cateTimerCallback = cateTimerCallback;
    }

    @Override
    public void onTimerDown() {
        cateTimerCallback.cateSlideTimerCallback();
    }
}